<template>
    <!-- 委托评估 -->
    <div class="box">
        <heads></heads>
        <titlesearch></titlesearch>
        <div class="gerenBox">
            <ceList :index="25"></ceList>
            <div class="houselist">
                <div class="title">委托评估</div>
                <div class="list">
                    <div class="li">
                        <div class="left">我要评估</div>
                        <div class="right">
                            <el-select id="el-select" v-model="xuan" placeholder="请选择评估物品">
                                <el-option :label="item" :value="item" v-for="(item, index) in addressList" :key="index"></el-option>
                            </el-select>
                        </div>
                    </div>
                    <div class="li">
                        <div class="left">{{messageTab==3?'看车地点':'看房地点'}}</div>
                        <div class="right">
                            <el-input id="input__inner" v-model="shopAddress" v-if='shopAddress'>
                            <el-button slot="append" icon="el-icon-location" @click="addressopen"></el-button>
                            </el-input>
                            <el-input id="input__inner" v-model="shopAddress" disabled v-else  placeholder="请选择定位获取地址">
                            <el-button slot="append" icon="el-icon-location" @click="addressopen"></el-button>
                            </el-input>
                        </div>
                    </div>
                    <div class="li">
                        <div class="left">联系方式</div>
                        <div class="right">
                            <input v-model="contactsPhone" type="number" oninput="if(value.length>11)value=value.slice(0,11)" placeholder="请填写联系方式"/>
                        </div>
                    </div>
                </div>
                <div class="reminder">提交后会有平台客服联系您并提供优质服务</div>
                <div class="xieyi">
                    <el-checkbox v-model="xieyistate"></el-checkbox>
                    <p>
                        发布即默认同意
                        <span style="color: #64b6a8;cursor: pointer;" @click="toXieyi(3)">《帮帮同城用户协议》</span>
                        <span style="color: #64b6a8;cursor: pointer;" @click="toXieyi(2)">《帮帮同城隐私政策》</span>
                    </p>
                </div>
                <div class="tijiao">提交</div>
            </div>
        </div>
        <addressMap ref="addmap" @address="onaddress"></addressMap>
    <floor></floor>
  </div>
</template>
<script>
import floor from "../../../components/floor";
import heads from "../../../components/head";
import ceList from "../../../components/ceList.vue";
import titlesearch from "../../../components/titlesearch.vue";
import addressMap from "../../../components/addressMap.vue";
export default {
  components: {
    floor,
    heads,
    ceList,
    titlesearch,
    addressMap,
  },
  data() {
    return {
        shopAddress:'',
        latitude:"",
        longitude:"",
        xieyistate:false
    };
  },
  mounted() {
    this.getUser();
  },
  methods: {
    getUser() {
      let user = JSON.parse(localStorage.getItem("userInfo"));
      if (user != null) {
       
      } else {
        this.loginstate = false;
        this.$message({
          message: "请登录！",
          type: "error",
          offset: 120,
          duration: 2000,
        });
        this.$router.push("/");
      }
    },
    addressopen() {
      this.$refs.addmap.open();
    },
    onaddress(item) {
      this.latitude = item.location.lat;
      this.longitude = item.location.lng;
      this.shopAddress = item.address;
    },
  },
};
</script>
<style lang="less" scoped>
.houselist {
    width: 936px;
    height: 820px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    vertical-align: top;
    display: inline-block;
    .title{
        text-align: center;
        font-size: 26px;
        font-weight: 600;
        color: #000;
        margin-top: 20px;
    }
    .list{
        margin-top: 80px;
        margin-left: 55px;
        width:80%;
        color: #000;
        .li {
            border-bottom: 1px solid #d0d0d0;
            padding-bottom: 16px;
            margin-top: 20px;
            .left {
                display: inline-block;
                width: 140px;
                font-size: 20px;
                font-weight: 600;
                margin-right: 5px;
                span {
                color: red;
                }
            }
            .right {
                display: inline-block;
                width: 550px;
                input {
                width: 99%;
                font-size: 20px;
                background-color: #fff;
                cursor: pointer;
                }
                .el-select {
                width: 99%;
                /deep/.el-input__inner {
                    border: 0;
                    padding: 0;
                    font-size: 20px;
                }
                }
                /deep/.el-radio__label {
                font-size: 18px;
                }
                /deep/.el-radio__inner {
                width: 28px;
                height: 28px;
                }
                /deep/.el-radio__input.is-checked .el-radio__inner {
                background-color: #64b6a8;
                border-color: #64b6a8;
                }
                /deep/.el-radio__inner::after {
                box-sizing: content-box;
                content: "";
                border: 2px solid #fff;
                position: absolute;
                transform: rotate(45deg) scaleY(1);
                transition: transform 0.15s ease-in 0.05s;
                transform-origin: center;
                border-radius: 0;
                background-color: rgba(0, 0, 0, 0);
                width: 6px;
                height: 13px;
                left: 9px;
                top: 4px;
                border-left: 0;
                border-top: 0;
                }
                /deep/.el-radio__input.is-checked + .el-radio__label {
                color: #333;
                }
            }
            .tu {
                position: relative;
                margin-top: 24px;
                width: 100%;
                font-size: 18px;
                .el-textarea {
                font-size: 18px;
                }
                .textarea {
                /deep/.el-textarea__inner {
                    width: 698px;
                    min-height: 80px !important;
                    line-height: 25px;
                    outline: none;
                    padding: 10px 13px 30px 13px;
                    overflow-y: visible;
                }
                }
                .zi {
                position: absolute;
                font-size: 14px;
                z-index: 99;
                right: 10px;
                bottom: 10px;
                color: #999999;
                }
                .shuoming {
                position: absolute;
                top: 0px;
                left: 180px;
                width: 308px;
                font-size: 18px;
                color: #999999;
                display: inline-block;
                }
            }
            .tu1 {
                position: relative;
                .sfz {
                width: 683px;
                height: 242px;
                top: 0px;
                left: 0px;
                }
                /deep/.el-upload--picture-card {
                width: 683px;
                height: 242px;
                }
            }
        }
    }
    .reminder{
        margin-top: 26px;
        text-align: center;
        font-size: 12px;
        font-weight: 400;
        color: #999999;
    }
    .xieyi {
        width: 550px;
        color: #333;
        margin: 0 auto;
        margin-top: 140px;
        margin-bottom: 25px;
        /deep/.el-checkbox__inner {
            width: 28px;
            height: 28px;
            border-radius: 50%;
        }
        /deep/.el-checkbox__inner::after {
            border: 2px solid #fff;
            width: 6px;
            height: 13px;
            left: 9px;
            top: 4px;
            border-left: 0;
            border-top: 0;
        }
        /deep/.el-checkbox__input.is-checked .el-checkbox__inner,
        /deep/.el-checkbox__input.is-indeterminate .el-checkbox__inner {
            background-color: #64b6a8;
            border-color: #64b6a8;
        }
        p {
            width: 450px;
            display: inline-block;
                
        }
    }
    .tijiao{
        width: 300px;
        height: 60px;
        background: #64B6A8;
        border-radius: 6px;
        text-align: center;
        line-height: 60px;
        margin: 0 auto;
        font-size: 24px;
        margin-bottom: 50px;
        cursor: pointer;
        color: #fff;
    }
}
.box {
  position: relative;
  padding-bottom: 200px;
}
.gerenBox {
  width: 1200px;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 32px;
  margin-bottom: 45px;
}
</style>